def fun(n):
    sum = 0
    for i in str(n):
        sum += int(i)
    return sum

n = eval(input("输入一个数: "))
print(f'{n}各位数之和为：{fun(n)}')